package com.dongdong.api;


import com.dongdong.model.TAdmin;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("dongdong-admin-services")
public interface AdminServiceApi {   //openfeign的远程调用 映射对应方法
    @GetMapping("/admin/selectAdminByUsername")
    public TAdmin selectAdminByUsername(@RequestParam String username);

}
